package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.PaymentDepositMapper;
import com.ruoyi.system.domain.PaymentDeposit;
import com.ruoyi.system.service.IPaymentDepositService;

/**
 * 押金管理Service业务层处理
 * 
 * @author YuKunXu
 * @date 2024-03-03
 */
@Service
public class PaymentDepositServiceImpl implements IPaymentDepositService 
{
    @Autowired
    private PaymentDepositMapper paymentDepositMapper;

    /**
     * 查询押金管理
     * 
     * @param id 押金管理主键
     * @return 押金管理
     */
    @Override
    public PaymentDeposit selectPaymentDepositById(Long id)
    {
        return paymentDepositMapper.selectPaymentDepositById(id);
    }

    /**
     * 查询押金管理列表
     * 
     * @param paymentDeposit 押金管理
     * @return 押金管理
     */
    @Override
    public List<PaymentDeposit> selectPaymentDepositList(PaymentDeposit paymentDeposit)
    {
        return paymentDepositMapper.selectPaymentDepositList(paymentDeposit);
    }

    /**
     * 新增押金管理
     * 
     * @param paymentDeposit 押金管理
     * @return 结果
     */
    @Override
    public int insertPaymentDeposit(PaymentDeposit paymentDeposit)
    {
        return paymentDepositMapper.insertPaymentDeposit(paymentDeposit);
    }

    /**
     * 修改押金管理
     * 
     * @param paymentDeposit 押金管理
     * @return 结果
     */
    @Override
    public int updatePaymentDeposit(PaymentDeposit paymentDeposit)
    {
        return paymentDepositMapper.updatePaymentDeposit(paymentDeposit);
    }

    /**
     * 批量删除押金管理
     * 
     * @param ids 需要删除的押金管理主键
     * @return 结果
     */
    @Override
    public int deletePaymentDepositByIds(Long[] ids)
    {
        return paymentDepositMapper.deletePaymentDepositByIds(ids);
    }

    /**
     * 删除押金管理信息
     * 
     * @param id 押金管理主键
     * @return 结果
     */
    @Override
    public int deletePaymentDepositById(Long id)
    {
        return paymentDepositMapper.deletePaymentDepositById(id);
    }
}
